﻿@model WebUI.Models.QizSubject
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = ViewBag.utid,
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "Post",
    OnSuccess = "$('#dialogbox').dialog('close');",
    OnFailure = "OnSiteError"
}))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>常规随访信息</legend>
        @Html.HiddenFor(model => model.ID)
        @Html.HiddenFor(model => model.HospID)
        @Html.HiddenFor(model => model.DepID)
        @Html.HiddenFor(model => model.CreatorID)
        @Html.HiddenFor(model => model.OwnerID)
        <table width="100%">
            <tr>
                <td>
                    @Html.EditorFor(model => model.Title, "TxtField")
                    @Html.EditorFor(model => model.StatusID, "StsField")
                    <div class="editor-label">
                        @Html.LabelFor(model => model.SubjectType)
                    </div>
                    <div class="editor-field">
                        @Html.DropDownListFor(model => model.SubjectType, new SelectList(new string[] { "常规随访单", "指标库" }), Model.SubjectType)
                    </div>
                    @Html.EditorFor(model => model.SortIdx, "TxtField")
                </td>
                <td>
                    @Html.EditorFor(model => model.CreateTime, "TxtField")
                    @Html.EditorFor(model => model.Tag, "TxtField")
                    <div class="editor-label">
                        @Html.LabelFor(model => model.PID)
                    </div>
                    <div class="editor-field">
                        @Html.DropDownListFor(model => model.PID, new SelectList(ViewBag.ParentSubject, "ID", "Title", Model.PID), "无", Model.ParentQizSubject)
                    </div>
                    <br />
                    @Html.EditorFor(model => model.IsAllowInMobile, "CheckField")
                </td>
                <td>
                    <div class="editor-label">
                        @Html.LabelFor(model => model.DescForDoctor)
                    </div>
                    <div class="editor-field">
                        @Html.TextAreaFor(model => model.DescForDoctor, new { rows = 3, cols = 40, id = "desc_doctor" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.DescForRecuper)
                    </div>
                    <div class="editor-field">
                        @Html.TextAreaFor(model => model.DescForRecuper, new { rows = 3, cols = 40, id = "desc_recuper" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.DescIfBad)
                    </div>
                    <div class="editor-field">
                        @Html.TextAreaFor(model => model.DescIfBad, new { rows = 3, cols = 40, id = "desc_if_bad" })
                    </div>

                    <div class="editor-label">
                        @Html.LabelFor(model => model.DescIfFine)
                    </div>
                    <div class="editor-field">
                        @Html.TextAreaFor(model => model.DescIfFine, new { rows = 3, cols = 40, id = "desc_if_fine" })
                    </div>
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="确定" />
        </p>
        <script type="text/javascript">
            customDialogWidth=850;
        </script>
    </fieldset>
}